﻿using System.ComponentModel.DataAnnotations;

namespace QuickGet.EntityFrameworkCore.Models
{
    public class PackageVersionEntity
    {
        public PackageVersionEntity(string packageId, string packageVersion)
        {
            PackageId = packageId;
            PackageVersion = packageVersion;
            Created = DateTimeOffset.UtcNow;
            LastModified = DateTimeOffset.UtcNow;
        }

        [Key]
        public long Id { get; set; }
        public string PackageId { get; set; }
        public string PackageVersion { get; set; } 
        public string? SavePath { get; set; }
        public DateTimeOffset Created { get; set; }
        public DateTimeOffset LastModified { get; set; }
    }
}
